package com.mianshi.facejava.modules.facejava.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-07-12 16:28:53
 */
@TableName("java_question")
public class JavaQuestionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 
	 */
	private String question;
	/**
	 * 
	 */
	private String answer;
	/**
	 * 
	 */
	private Date createTime;

	private String type;

	private Integer level;

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public JavaQuestionEntity(){
		this.createTime = new Date();
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	/**
	 * 设置：
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：
	 */
	public void setQuestion(String question) {
		this.question = question;
	}
	/**
	 * 获取：
	 */
	public String getQuestion() {
		return question;
	}
	/**
	 * 设置：
	 */
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	/**
	 * 获取：
	 */
	public String getAnswer() {
		return answer;
	}
	/**
	 * 设置：
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：
	 */
	public Date getCreateTime() {
		return createTime;
	}
}
